package commands;

import java.util.Hashtable;

import devices.Heater;

import annotations.Command;
import annotations.Param;

@Command(name="Toggle heater", description="Turns the heater on or off", id=0)
public class HeaterOffCommand implements CommandInterface{
	
	@Param(
			id=0,
			name="State",
			description="Sets the state of the heater",
			mandatory=true
	)
	public boolean state;

	
	
	@Override
	public Object getInitialValueFor(Param p, Hashtable<Integer, Object> deviceData) {
		return deviceData.get(Heater.STATE);
	}
}
